﻿using SY.WebApiTool.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SY.WebApiTool.Model
{

    public class MaterialJsonResult : IJsonResult
    {
        public Result Result { get; set; }
    }

    public class Result
    {
        public Responsestatus ResponseStatus { get; set; }
        public string Id { get; set; }
        public string Number { get; set; }
        public Needreturndata[] NeedReturnData { get; set; }
    }

    public class Responsestatus
    {
        public bool IsSuccess { get; set; }
        public Error[] Errors { get; set; }
        public Successentity[] SuccessEntitys { get; set; }
        public object[] SuccessMessages { get; set; }
        public int MsgCode { get; set; }
        public int ErrorCode { get; set; }
    }

    public class Successentity
    {
        /// <summary>
        /// 物料内码
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string Number { get; set; }

        public int DIndex { get; set; }
    }

    public class Error
    {
        public string FieldName { get; set; }
        public string Message { get; set; }
        public int DIndex { get; set; }
    }

    public class Needreturndata
    {
        public int FMATERIALID { get; set; }
        public string FNumber { get; set; }
        public string FName { get; set; }
    }
}



